<template>
  <a-form layout="vertical">
    <a-form-item label="字段标题">
      <a-input v-model:value="input.title" placeholder="字段标题" />
    </a-form-item>
    <a-form-item label="字段名称">
      <a-input v-model:value="input.dataIndex" placeholder="字段名称" />
    </a-form-item>
    <a-form-item label="默认值">
      <a-input v-model:value="input.defaultValue" placeholder="默认值" />
    </a-form-item>
    <a-form-item label="提示信息">
      <a-input v-model:value="input.placeholder" placeholder="提示信息" />
    </a-form-item>
    <a-form-item>
      <a-button type="primary">
        Submit
      </a-button>
    </a-form-item>
  </a-form>
</template>
<script lang="ts">
import { defineComponent, toRef } from 'vue'
export default defineComponent({
  name: 'InputDesign',
  props: {
    items: {
      default: null
    },
    index: {
      default: null
    },
    item: {
      default: null
    }
  },
  setup(props) {
    const input = toRef(props, 'item')
    return {
      input
    }
  }
})
</script>

